package com.link2room.enums.exception;

import com.link2room.common.constant.BaseConstant;
import com.link2room.common.enums.DefaultSysExceptionInterface;

/**
 * Created by sss on 2016/8/11.
 */
public enum QuintessonSysExceptionEnum implements DefaultSysExceptionInterface{
    NO_TAOBAOCLIENT(2001,"taobaoClient未建立", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),
    NO_TAOBAOSESSIONKEY(2002,"taobaoSessionKey未找到", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),
    TAOBAO_UPHOTEL(2003,"更新飞猪酒店失败", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),
    TAOBAO_UPROOM(2004,"更新飞猪房型失败", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),
    TAOBAO_UPRATEPLAN(2005,"更新飞猪价格计划失败", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),
    TAOBAO_UPRATE(2006,"更新飞猪商品失败", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),
    TAOBAO_UPINCREMENT(2007,"增量更新飞猪商品价格库存失败", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),
    TAOBAO_INVENTORY(2008,"飞猪商品价格库存明细缺失", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),
    TAOBAO_RATEPLAN_NOT_EXIST(2009,"飞猪价格计划未找到", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),
    TAOBAO_RATE_NOT_EXIT(2009,"飞猪商品未找到", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),
    TAOBAO_OTHER_EXCEPTION(-4,"可定检查其他异常", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),
    TAOBAO_ROOM_FULL(-1,"淘宝满房", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),
    TAOBAO_ROOM_LESS(-3,"淘宝房量不足", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),
    TAOBAO_SETTLE_ERROR(2010,"淘宝信用住结账失败", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),
    TAOBAO_SETTLE_MONEY_ERROR(2011,"淘宝信用住结账金额异常", BaseConstant.SysExceptionConstant.BIZ_TYPE.QUINTESSON),

    ;
    private QuintessonSysExceptionEnum(int code, String msg, String bizType){
        this.code=code;
        this.msg=msg;
        this.bizType=bizType;
    }

    private int code;

    private String msg;

    private String bizType;

    @Override
    public int getCode() {
        return code;
    }
    @Override
    public void setCode(int code) {
        this.code = code;
    }
    @Override
    public String getMsg() {
        return msg;
    }
    @Override
    public void setMsg(String msg) {
        this.msg = msg;
    }
    @Override
    public String getBizType() {
        return bizType;
    }
    @Override
    public void setBizType(String bizType) {
        this.bizType = bizType;
    }
}
